//
// Created by DELL on 2022/4/19.
//
#include "AppBase.h"
#include <exception>
#include <iostream>

AppBase* getApplication();

int main() {
    std::filesystem::current_path(CURRENT_WORKING_DIR);//setting path
    std::cout << "working path: " << std::filesystem::current_path() << std::endl;


    auto app = getApplication();

    try {
        app->run();
    }
    catch (const std::exception& e) {
        std::cerr << e.what() << std::endl;
        return EXIT_FAILURE;
    }

    return EXIT_SUCCESS;
}